
<?php echo $__env->make('admin::layouts.header', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<script>
    var ADMIN = "<?php echo config('admin.admin_url'); ?>/admin";
    var navs = <?php echo $menus; ?>;
</script>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header header">
        <div class="layui-main">
            <div class="admin-login-box">
                <a class="logo" style="left: 0;" href="">
                    <span style="font-size: 22px;"><?php echo e(\Cache::get('config')['title']); ?></span>
                </a>
                <div class="admin-side-toggle fs1">
                    <span class="icon icon-menu"></span>
                </div>
                <div class="admin-side-full">
                    <span class="icon icon-enlarge"></span>
                </div>
            </div>
			<ul class="layui-nav layui-layout-left" style="left:300px;">
			  <li class="layui-nav-item" onclick='window.location.href="<?php echo e(route('admin.index.index')); ?>"'><a href="javascript:;">站点管理</a></li>
			  
			  <li class="layui-nav-item" onclick='window.location.href="<?php echo e(route('admin.index.index',['module'=>'blog_admin'])); ?>"'><a href="javascript:;">博客管理</a></li>
			  
			  <li class="layui-nav-item" onclick='window.location.href="<?php echo e(route('admin.index.index',['module'=>'api_admin'])); ?>"'><a href="javascript:;">API管理</a></li>
			  
			  <li class="layui-nav-item" onclick='window.location.href="<?php echo e(route('admin.index.index',['module'=>'shop_admin'])); ?>"'><a href="javascript:;">商城管理</a></li>
			  
			  <li class="layui-nav-item" onclick='window.location.href="<?php echo e(route('admin.index.index',['module'=>'wechat'])); ?>"'><a href="javascript:;">微信管理</a></li>
			  
			  <?php if($module == 'admin'): ?>
				<span class="layui-nav-bar" style="left: 10px; top: 60px; width: 90px; opacity: 1;"></span>
			  <?php endif; ?>
			  <?php if($module == 'blog_admin'): ?>
				<span class="layui-nav-bar" style="left: 126px; top: 60px; width: 90px; opacity: 1;"></span>
			  <?php endif; ?>
			  <?php if($module == 'api_admin'): ?>
				<span class="layui-nav-bar" style="left: 242px; top: 60px; width: 90px; opacity: 1;"></span>
			  <?php endif; ?>
			  <?php if($module == 'shop_admin'): ?>
				<span class="layui-nav-bar" style="left: 358px; top: 60px; width: 90px; opacity: 1;"></span>
			  <?php endif; ?>
			  <?php if($module == 'wechat'): ?>
				<span class="layui-nav-bar" style="left: 474px; top: 60px; width: 90px; opacity: 1;"></span>
			  <?php endif; ?>
			</ul>
            <ul class="layui-nav admin-header-item" lay-filter="side-top-right">
				<li class="layui-nav-item" id="cache">
                    <a href="javascript:;">清除缓存</a>
                </li>
                <li class="layui-nav-item">
                    <a href="<?php echo e(route('blog.index.index')); ?>" target="_blank">博客</a>
                </li>
                <li class="layui-nav-item">
                    <a class="name" href="javascript:;">主题</a>
                    <dl class="layui-nav-child">
                        <dd data-skin="0"><a href="javascript:;">默认</a></dd>
                        <dd data-skin="1"><a href="javascript:;">纯白</a></dd>
                        <dd data-skin="2"><a href="javascript:;">蓝白</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" class="admin-header-user">

                        <span><?php echo e(\Auth::guard("admin")->user()->username); ?></span>
                    </a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="<?php echo e(route('admin.index.logout')); ?>">退出</a>
                        </dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <div class="layui-side layui-bg-black" id="admin-side">
        <div class="layui-side-scroll" id="admin-navbar-side" lay-filter="side"></div>
    </div>
    <div class="layui-body" style="bottom: 20px;border-left: solid 2px #1AA094;" id="admin-body">
        <div class="layui-tab admin-nav-card layui-tab-brief" lay-filter="admin-tab">
            <ul class="layui-tab-title">
                <li class="layui-this">
                    <i class="icon icon-earth" aria-hidden="true"></i>
                    <cite>控制面板</cite>
                </li>
            </ul>
            <div class="layui-tab-content" style="min-height: 150px; padding: 0;">
                <div class="layui-tab-item layui-show">
                    <iframe src="<?php echo e(route('admin.index.main')); ?>"></iframe>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-footer footer footer-demo" id="admin-footer">
        <div class="layui-main">
            <p>2017 &copy;
                <a href="http://www.phpsongbo.xyz/">www.phpsongbo.xyz</a> Apache Licence 2.0
            </p>
        </div>
    </div>
    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">&#xe602;</i>
    </div>
    <div class="site-mobile-shade"></div>
    <?php echo $__env->make('admin::layouts.footer', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <script src="<?php echo config('admin.admin_url'); ?>/admin/js/index.js"></script>
    <script>
        layui.use('layer',function(){
            var $ = layui.jquery, layer = layui.layer;
            $('#cache').click(function () {
                layer.confirm('确认要清除缓存？', {icon: 3}, function () {
                    $.get("<?php echo e(route('admin.index.clear')); ?>",function (res) {
                        layer.msg(res.msg, {icon: 6}, function (index) {
                            layer.close(index);
                            window.location.href = res.url;
                        });
                    });
                });
            });
        })
    </script>
</div>
</body>
</html>
